package zjc.特殊判断;

public class teshupanduan {
    public static void main(String[] args) {
        //&&判断左边为错右边直接不执行
        int a=1;
        int b=2;
        System.out.println(a>b&&b++>10);
        System.out.println(b);
        System.out.println(a>b&b++>10);
        System.out.println(b);
        //||判断左边为正确右边直接不执行
        int n=1;
        int m=2;
        System.out.println(n<m||n++<m);
        System.out.println(n);
        System.out.println(n<m|n++<m);
        System.out.println(n);
        //^不相同ture相同false
        System.out.println(true ^ false);
        System.out.println(true ^ true);

    }
}
